<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\BaseController;
use App\Http\Controllers\Controller;
use App\Models\Feedback;
use Illuminate\Http\Request;

class FeedBackController extends BaseController
{
    public function back_look(){
        $all = Feedback::all();
        return $this->returnArray($all);
    }
    public function back_looked(Feedback $feedback){
        $feedback->is_looked = 1;
        $feedback->save();
        return $this->response->created();
    }
    public function back_down(Feedback $feedback){
        $feedback->is_down = 1;
        $feedback->save();
        return $this->response->created();
    }
}
